package com.kikikeji.weizhuo.util;

import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;

import com.kikikeji.weizhuo.manager.LauncherPresenter;

public class OnDoubleClick extends GestureDetector.SimpleOnGestureListener{
    private static final String TAG = "OnDoubleClick";
    private LauncherPresenter mPresenter;
    public OnDoubleClick(LauncherPresenter presenter) {
        mPresenter = presenter;
    }

    @Override
    public boolean onDoubleTap(MotionEvent e) {
        mPresenter.doubleClick();
        Log.e(TAG,"onDoubleTap");
        return false;
    }
//    @Override
//    public boolean onDoubleTapEvent(MotionEvent e) {
//        return super.onDoubleTapEvent(e);
//    }
}